﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Publicuse.Util
{
    public class AppSettingUtil
    {
        #region 读取配置文件相关配置信息

        /// <summary>
        /// MySqlSguar连接串
        /// </summary>
        public static string MySqlSugarConnection { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "MySqlSugarConnection");

        /// <summary>
        /// 邮箱用户ID
        /// </summary>
        public static string emailuid { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "emailuid");

        /// <summary>
        /// 邮箱用户密码
        /// </summary>
        public static string emailpwd { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "emailpwd");

        /// <summary>
        /// RabbitMQHost
        /// </summary>
        public static string RabbitMQHost { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "RabbitMQHost");

        /// <summary>
        /// RabbitMQName
        /// </summary>
        public static string RabbitMQName { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "RabbitMQName");

        /// <summary>
        /// RabbitMQPass
        /// </summary>
        public static string RabbitMQPass { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "RabbitMQPass");

        /// <summary>
        /// 加密Key
        /// </summary>
        public static string EnDecrypKey { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "EnDecrypKey");

        /// <summary>
        /// 系统退出API
        /// </summary>
        public static string LoginOutApi { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "LoginOutApi");

        /// <summary>
        /// 系统访问Key
        /// </summary>
        public static string SystemKey { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "SystemKey");

        /// <summary>
        /// 本地Oracle连接
        /// </summary>
        public static string OracleConnectionLocal { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "OracleConnectionLocal");

        /// <summary>
        /// 测试Oracle连接
        /// </summary>
        public static string OracleConnectionTest { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "OracleConnectionTest");

        /// <summary>
        /// 正式Oracle连接
        /// </summary>
        public static string OracleConnectionZS { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "OracleConnectionZS");

        /// <summary>
        /// 正式RedisVPN连接
        /// </summary>
        public static string RedisConnectionVPN { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "RedisConnectionVPN");

        /// <summary>
        /// 正式MongodbVPN连接
        /// </summary>
        public static string MongodbConnectionVPN { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "MongodbConnectionVPN");

        /// <summary>
        /// 发送短信URL
        /// </summary>
        public static string sendSMSURL { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "sendSMSURL");

        /// <summary>
        /// 附件预览服务器路径
        /// </summary>
        public static string APPATH { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "APPATH");

        /// <summary>
        /// 上传附件存放路径
        /// </summary>
        public static string UploadFilePath { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "UploadFilePath");

        /// <summary>
        /// 高德地图key
        /// </summary>
        public static string gdmapkey { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "gdmapkey");

        /// <summary>
        /// 高德地图请求URL
        /// </summary>
        public static string gdmapurl { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "gdmapurl");

        /// <summary>
        /// 腾讯地图转换KEY
        /// </summary>
        public static string MapKey { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "MapKey");

        /// <summary>
        ///高德地图转换KEY
        /// </summary>
        public static string GDMapKeyb { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "GDMapKeyb");

        /// <summary>
        ///SqlLite
        /// </summary>
        public static string SqlLite { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "SqlLite");

        public static string AdminSafeList { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "AdminSafeList");
        public static string BDAPPID { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "BDAPPID");
        public static string BDAccessKey { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "BDAccessKey");

        public static string BDSecretKey { get; } = AppConfigUtil.ReadAppSettings("ConnectionStrings", "BDSecretKey");

        #endregion
    }
}
